package org.itboys.mobile.entity.mysql.product;


import org.itboys.admin.dto.lasted.SundayUploadDto;
import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_商品_实体。如果字段不够请自行扩展。不需要继承此类！！！！！！！！！！！！
 */
public class SundayProduct extends BaseMySqlEntity {
	
	//基础属性
	private String name;//商品名称
    private String title;//商品标题
    private String standard;//规格
    private Long categoryId;//分类ID
    private String categoryName;//分类名称，不储存
    private Long brandId;//品牌ID
    private String brandName;//品牌名称
    private BigDecimal marketPrice;//市场价。仅作参考
    private BigDecimal price;//零售价（或积分价格）。
    private Integer saleNumber;//销量
    private Integer store;//库存
    private Integer status;//状态。0已下架,1已上架,2未开始/已结束,3已售罄
    private Integer type;//1普通，2新品，3特卖，4全球购，5金领，6爱购币，7积分，8秒杀，9拼团，10试用
    private String place;//产地
    //其他属性
    private String barCode ;//条码
    private BigDecimal star;//评分
    private Long shopId;//商家ID;
    //图片信息
    private String image;//商品主图
    private String desc;//商品描述。图文
    private List<SundayUploadDto> rollImages;//轮播图
    //全球购
    private BigDecimal tax;//关税
    private String taxMsg;//关税、发货地等说明
    //秒杀(疯抢)
  //  private Date secKillStartTime;//秒杀开始时间,2018年1月16日废弃
  //  private Date secKillEndTime;//秒杀结束时间，2018年1月16日废弃
    private Integer secKillStore;//秒杀商品数量
    private String secKillTimeGroupValue;//秒杀商品时间组ID。从字典中获取
    //拼团
    private Integer teamMemberNum;//拼团最低人数
    private BigDecimal teamPrice;//拼团价格
    private Integer teamHour;//拼团有效时间（小时）
    //爱购币
    private BigDecimal aigouPrice;//需要兑换的爱购币，2018年1月16日，废弃
    private Integer isRecommend;//是否首页推荐；
    //2018年2月8日
    private Integer isDiscount;//是否允许折扣;


    //2018年3月13日,报表相关-产品今日销量-00点后删除
    private Integer todaySale;//2018年3月13日，废弃
    public SundayProduct() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(Integer saleNumber) {
        this.saleNumber = saleNumber;
    }

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BigDecimal getStar() {
        return star;
    }

    public void setStar(BigDecimal star) {
        this.star = star;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<SundayUploadDto> getRollImages() {
        return rollImages;
    }

    public void setRollImages(List<SundayUploadDto> rollImages) {
        this.rollImages = rollImages;
    }

    public BigDecimal getTax() {
        return tax;
    }

    public void setTax(BigDecimal tax) {
        this.tax = tax;
    }

    public String getTaxMsg() {
        return taxMsg;
    }

    public void setTaxMsg(String taxMsg) {
        this.taxMsg = taxMsg;
    }

    /*public Date getSecKillStartTime() {
        return secKillStartTime;
    }

    public void setSecKillStartTime(Date secKillStartTime) {
        this.secKillStartTime = secKillStartTime;
    }

    public Date getSecKillEndTime() {
        return secKillEndTime;
    }

    public void setSecKillEndTime(Date secKillEndTime) {
        this.secKillEndTime = secKillEndTime;
    }*/

    public Integer getSecKillStore() {
        return secKillStore;
    }

    public void setSecKillStore(Integer secKillStore) {
        this.secKillStore = secKillStore;
    }

    public String getSecKillTimeGroupValue() {
        return secKillTimeGroupValue;
    }

    public void setSecKillTimeGroupValue(String secKillTimeGroupValue) {
        this.secKillTimeGroupValue = secKillTimeGroupValue;
    }

    public Integer getTeamMemberNum() {
        return teamMemberNum;
    }

    public void setTeamMemberNum(Integer teamMemberNum) {
        this.teamMemberNum = teamMemberNum;
    }

    public BigDecimal getTeamPrice() {
        return teamPrice;
    }

    public void setTeamPrice(BigDecimal teamPrice) {
        this.teamPrice = teamPrice;
    }

    public Integer getTeamHour() {
        return teamHour;
    }

    public void setTeamHour(Integer teamHour) {
        this.teamHour = teamHour;
    }

    public BigDecimal getAigouPrice() {
        return aigouPrice;
    }

    public void setAigouPrice(BigDecimal aigouPrice) {
        this.aigouPrice = aigouPrice;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Integer getIsDiscount() {
        return isDiscount;
    }

    public void setIsDiscount(Integer isDiscount) {
        this.isDiscount = isDiscount;
    }

    public Integer getTodaySale() {
        return todaySale;
    }

    public void setTodaySale(Integer todaySale) {
        this.todaySale = todaySale;
    }

    public String  getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 1:
                typeStr="普通";
                break;
            case 2:
                typeStr="新品";
                break;
            case 3:
                typeStr="特卖";
                break;
            case 4:
                typeStr="全球购";
                break;
            case 5:
                typeStr="分销";
                break;
            case 6:
                typeStr="爱购币";
                break;
            case 7:
                typeStr="积分";
                break;
            case 8:
                typeStr="秒杀";
                break;
            case 9:
                typeStr="拼团";
                break;
            case 10:
                typeStr="达人试用";
                break;
            default:
                break;
        }
        return typeStr;
    }


}
